package top.rainf.mapper;

import org.apache.ibatis.annotations.Param;
import top.rainf.domain.vo.PostReply;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 星环
 * @date 2023/5/10 11:37:28
 * @description
 */
 @Mapper
public interface PostReplyMapper {


    List<PostReply> selectAll();
    PostReply selectById(int id);

    int deleteById(int id);

    int deleteByIds(List<Integer> idList);

    int updateById(PostReply postReply);

    List<PostReply> selectByPostId(int postId);

    List<PostReply> selectByPostIdPaged(@Param("postId") int postId,
                                        @Param("start") int start,
                                        @Param("numPerPage") int numPerPage);

    int selectCountByPostId(int postId);

    void insertOne(PostReply postReply);

}
